import request from '@/utils/request'


// 修改招标信息状态
export function changeMarkStatus (id, markStatus) {
  return request({
    url: '/wms/mark/changeMarkStatus',
    method: 'put',
    params: {
      "id": id,
      "markStatus": markStatus
    }
  })
}


// 查询招标信息发布列表
export function listMark (query) {
  return request({
    url: '/wms/mark/list',
    method: 'get',
    params: query
  })
}

// 查询招标信息发布详细
export function getMark (id) {
  return request({
    url: '/wms/mark/' + id,
    method: 'get'
  })
}

// 新增招标信息发布
export function addMark (data) {
  return request({
    url: '/wms/mark',
    method: 'post',
    data: data
  })
}

// 修改招标信息发布
export function updateMark (data) {
  return request({
    url: '/wms/mark',
    method: 'put',
    data: data
  })
}

// 删除招标信息发布
export function delMark (id) {
  return request({
    url: '/wms/mark/' + id,
    method: 'delete'
  })
}
